package cqrtplm.entity;

import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.session.TyAccountContext;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigInteger;
import java.util.Date;

/**
 * @Author：lotus
 * @DATE: 2025/7/7 11:31
 * 开发令
 */


@Entity
@Table(name = "RT_COD_DEV_ORDER")
@Data
public class ProjectDevOrderDO extends CTyEntityBaseDO {

    @Id
    @Column(name = "oid")
    private BigInteger oid;

    //项目开发令
    @Column(name = "project_code")
    private String projectCode;

    //开发令号
    @Column(name = "dev_order_number", nullable = false)
    private String devOrderNumber;

    //机型号
    @Column(name = "aircraft_model", nullable = false)
    private String aircraftModel;

    //项目名称
    @Column(name = "project_name", nullable = false)
    private String projectName;

    //开发分级
    @Column(name = "dev_category", nullable = false)
    private String devCategory;

    //开发等级
    @Column(name = "dev_level", nullable = false)
    private String devLevel;

    //系数
    @Column(name = "coefficient", nullable = false)
    private String coefficient;

    //负责人
    @Column(name = "responsible_person", nullable = false)
    private String responsiblePerson;


    //停用标志
    @Column(name = "is_disabled")
    private String isDisabled;

    //备注
    @Column(name = "remarks")
    private String remarks;

    //停用人
    @Column(name = "disabled_by")
    private String disabledBy= TyAccountContext.getUser().getFullname();

    //停用时间
    @Column(name = "disabled_time")
    private Date disabledTime=new Date();

    //推进方式
    @Column(name = "boost")
    private String boost;

    //创建人
    @Column(name = "CREATED_BY")
    private String createBy= TyAccountContext.getUser().getFullname();

    //变更前
    @Column(name = "BEFORE_PROJECT_CODE")
    private String beforeProjectCode;

    //变更后
    @Column(name = "AFTER_PROJECT_CODE")
    private String afterProjectCode;

    //开发类型
    @Column(name = "DEVELOPMENT_TYPE ")
    private String developmentType;

    //项目板块
    @Column(name = "SECTOR")
    private String sector;

        //产品系列
    @Column(name = "PROJECT_SERIES")
    private String productSeries;

    //产品类别 => 对应产品型谱的产品小类
    @Column(name = "PROJECT_CATEGORY")
    private String productCategory;

    //修改人
    @Column(name = "UPDATE_BY")
    private String updateBy;

}
